#	gedex.sh - Bourne and Korn shell GEDEX CD-ROM initialization
#
#	source this file in via:
#	 . /cdrom/software/irix/gedex.sh	# for IRIX
#	 . /cdrom/software/sunos/gedex.sh	# for SunOS
#	 (note: use . "cdrom/SOFTWARE/HPUX/GEDEX.SH;1" on HP-UX)
#	 substituting your cd mount point for /cdrom
#
#	after running this initialization use the command gedex to run
#
read GEDEXDIR?"what directory is the mount point for your cd-rom drive? "
export GEDEXDIR

case `uname -s` in

  HP-UX )
	os=HPUX
	jamdir=$GEDEXDIR/SOFTWARE/JAM
	SMDICNAME="$jamdir/DATA.DIC;1"
	SMPATH=$jamdir
	SMKEY="$jamdir/VT100KEY.BIN;1"
	SMVIDEO="$jamdir/VT100VID.BIN;1" 
	SMMSGS="$jamdir/MSGFILE.BIN;1"
	SMFEXTENSION="JAM;1"
	PATH=$GEDEXDIR/SOFTWARE/$os:$PATH
	gedex() { 'JAM;1' PRODUCTS; }
	;; 


  IRIX  )
	os=irix
	jamdir=$GEDEXDIR/software/jam
	SMDICNAME=$jamdir/data.dic
	SMPATH=$jamdir
	SMKEY=$jamdir/vt100key.bin
	SMVIDEO=$jamdir/vt100vid.bin 
	SMMSGS=$jamdir/msgfile.bin
	SMFEXTENSION=jam
	PATH=$GEDEXDIR/software/$os:$PATH
	gedex() { jam products; }
	;;


  SunOS )
	os=sunos
	jamdir=$GEDEXDIR/software/jam
	SMDICNAME=$jamdir/data.dic
	SMPATH=$jamdir
	SMKEY=$jamdir/vt100key.bin
	SMVIDEO=$jamdir/vt100vid.bin 
	SMMSGS=$jamdir/msgfile.bin
	SMFEXTENSION=jam
	PATH=$GEDEXDIR/software/$os:$PATH
	gedex() { jam products; }
	;;


  * )
	echo "unsupported system cannot continue..."
	;;

esac


export SMDICNAME SMPATH SMTERM SMKEY SMVIDEO SMMSGS SMFEXTENSION PATH


echo "type gedex to begin execution"
